<?php
/**
 * 入口文件
 *
 */

define('APPTYPEID', 1);
define('APPTYPENAME', 'FAMOUSOGLDS');
define('CURCONFIG', 1);
define('CURSCRIPT', '');

/**
 * @see famous_core
 */
require './source/class/class_core.php';
$famous = &famous_core::instance();
$famous->init();

$mod = isset($_G['mod']) ? $_G['mod'] : '';
$modarray = array('index');

if (empty($mod) || !in_array($mod, $modarray)) {
    $mod = $_G['mod'] = $modarray[0];
}

// 检查动作名的合法性
if (empty($_G['action']) || !preg_match('/^[a-zA-Z]+$/', $_G['action'])) {
    showmessage('undefined_action', dreferer());
}
$action = $_G['action'];

$_SESSION['goldsname'] = '张';


/* require libfile('class/timer');
require libfile('timer/' . $mod, 'module'); */
